package com.cn.yz.common.httpentity;

import com.cn.yz.common.exception.ErrMessage;

public class ResponseErr extends ResponseString {
	
	private String errCode;
	
	private String errCodeDes;
	
	public ResponseErr(String errCode,String errCodeDes){
		super("FAIL","操作失败");
		this.errCode = errCode;
		this.errCodeDes = errCodeDes;
	}
	
	public ResponseErr(ErrMessage errMessage){
		super("FAIL","操作失败");
		this.errCode = errMessage.getCode();
		this.errCodeDes = errMessage.getMessage();
	}

	public String getErrCode() {
		return errCode;
	}

	public void setErrCode(String errCode) {
		this.errCode = errCode;
	}

	public String getErrCodeDes() {
		return errCodeDes;
	}

	public void setErrCodeDes(String errCodeDes) {
		this.errCodeDes = errCodeDes;
	}
}
